package com.atguigu.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * springboot2.x默认的数据连接池是HikariDataSource
 *
 */
@SpringBootApplication
public class AdminWebApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(AdminWebApplication.class, args);

        String[] beanDefinitionNames = run.getBeanDefinitionNames();
        for (String name:beanDefinitionNames){
            System.out.println(name);
        }
    }

}
